package fun.werfamily.wf.base.enums;

import fun.werfamily.wf.base.exception.CommonError;

/**
 * @Author Mr.WenMing
 * @date 2022/8/20 14:54
 */
public enum CommonResponseEnum implements CommonError {
    SERVER_ERROR("500", "系统内部错误", "系统内部错误"),
    OK("200", "处理成功", "处理成功"),
    TOKEN_IS_EMPTY("1000", "Token为空，需要登录", "Token为空，需要登录"),
    TOKEN_IS_INVALID("1001", "Invalid Token 无效token", "Invalid Token 无效token"),;
    private String code;
    private String msg;
    private String friendlyMsg;

    CommonResponseEnum(String code, String msg, String friendlyMsg) {
        this.code = code;
        this.msg = msg;
        this.friendlyMsg = friendlyMsg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getFriendlyMsg() {
        return friendlyMsg;
    }

    public void setFriendlyMsg(String friendlyMsg) {
        this.friendlyMsg = friendlyMsg;
    }
}
